package com.java.gamePackeg.event;

import com.java.gamePackeg.Player;
import com.java.gamePackeg.PlayerProduct;
import com.java.gamePackeg.Product;

import javax.swing.*;
import java.util.List;

public class LoseProEvent implements Event {
    private static final float DIU = 0.1f;

    @Override
    public void event(Player player, List<Product> marketProList) {
        if (player.getProList().isEmpty()) {
            return;
        }
        PlayerProduct pp = player.getProList().remove(0);
        JOptionPane.showMessageDialog(null, "遭到入室抢劫，丢失货物：" + pp.getName());
    }


}
